﻿@page "/account/invaliduser"
@using CleanArchitecture.Blazor.Server.UI.Pages.Identity.Login
@inject IStringLocalizer<InvalidUser> L
<PageTitle>@L["Access Denied"]</PageTitle>

<div class="d-flex flex-column align-center">
    <MudText Typo="Typo.h4" GutterBottom="true">@L["Access Denied"]</MudText>
    <StatusMessage Error="true" Message="@L["Your account is not allowed to sign in. This may be due to your account being inactive, email not confirmed, or other restrictions. Please contact support for assistance."]"/>
    
    <div class="d-flex gap-4 mt-4">
        <MudButton Href="@Login.PageUrl" 
                   Variant="Variant.Filled" 
                   Color="Color.Primary" 
                   Size="Size.Medium">
            @L["Back to Login"]
        </MudButton>
        
        <MudButton Href="/" 
                   Variant="Variant.Outlined" 
                   Color="Color.Primary" 
                   Size="Size.Medium">
            @L["Go Home"]
        </MudButton>
    </div>
</div>

@code{
    public const string PageUrl = "/account/invaliduser";
}